const files = require.context('.', false, /.js$/)

const ROUTES = []

files.keys().forEach(path => {
  if (path === './index.js') return
  const item = files(path).default
  ROUTES.push(...item)
})

export default ROUTES
